package masterSpringMvc.profile;

import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;

import masterSpringMvc.date.PastLocalDate;

public class ProfileForm {
	@Size(min=2)
	private String twitterHandle;
	@Email
	@NotEmpty
	private String email;
	@NotNull
	@PastLocalDate
	private LocalDate birthDate;
	@NotEmpty
	private List<String> taste = new ArrayList<String>();
	public String getTwitterHandle() {
		return twitterHandle;
	}
	public void setTwitterHandle(String twitterHandle) {
		this.twitterHandle = twitterHandle;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public LocalDate getBirthDate() {
		return birthDate;
	}
	public void setBirthDate(LocalDate birthDate) {
		this.birthDate = birthDate;
	}
	public List<String> getTaste() {
		return taste;
	}
	public void setTaste(List<String> taste) {
		this.taste = taste;
	}
}
